var express = require('express');
const UserController = require('../../controllers/admin/UserController');
// 图片上传
const multer = require("multer")
const upload = multer({dest:"public/uploads/avatar/"})

var router = express.Router();
router.get('/', function (req, res, next) {
    res.send({
        ok: 1
    })
});

/* GET home page. */
router.post('/login', UserController.login);

router.post("/detail", UserController.detail);

router.post("/add",UserController.add)

router.post("/update", UserController.update);

router.get("/list",UserController.list)

router.get("/delete/:id",UserController.delete)


module.exports = router;